<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-user_id" class="control-label col-xs-12 col-sm-2">{:__('User_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="auth/admin/index" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_name}">
            <input type="hidden" id="c-user_id_text_value" name="row[user_name]" value="{$row.user_name}"/>
        </div>
    </div>
    <div class="form-group">
        <label for="c-site_id" class="control-label col-xs-12 col-sm-2">{:__('Site_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-site_id" data-rule="required" data-source="site/index" class="form-control selectpage" name="row[site_id]" type="text" value="{$row.site_name}">
            <input type="hidden" id="c-site_id_text_value" name="row[site_name]" value="{$row.site_name}"/>
        </div>
    </div>
    <div class="form-group">
        <label for="c-log_type" class="control-label col-xs-12 col-sm-2">{:__('Log_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-log_type" data-rule="required" class="form-control selectpicker" name="row[log_type]">
                {foreach name="logTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.log_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-log_time" class="control-label col-xs-12 col-sm-2">{:__('Log_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-log_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[log_time]" type="text" value="{$row.log_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-log_morning" class="control-label col-xs-12 col-sm-2">{:__('Log_morning')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-log_morning" data-rule="required" class="form-control" name="row[log_morning]" type="text" value="{$row.log_morning}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-log_afternoon" class="control-label col-xs-12 col-sm-2">{:__('Log_afternoon')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-log_afternoon" data-rule="required" class="form-control" name="row[log_afternoon]" type="text" value="{$row.log_afternoon}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-log_night" class="control-label col-xs-12 col-sm-2">{:__('Log_night')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-log_night" data-rule="required" class="form-control" name="row[log_night]" type="text" value="{$row.log_night}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-log_morinig_amount" class="control-label col-xs-12 col-sm-2">{:__('Log_morinig_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-log_morinig_amount" class="form-control" step="1" min="0" name="row[log_morinig_amount]" type="number" value="{$row.log_morinig_amount}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-log_afternoon_amount" class="control-label col-xs-12 col-sm-2">{:__('Log_afternoon_amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-log_afternoon_amount" class="form-control" step="1" min="0" name="row[log_afternoon_amount]" type="number" value="{$row.log_afternoon_amount}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-log_situation" class="control-label col-xs-12 col-sm-2">{:__('Log_situation')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-log_situation" data-rule="required" class="form-control " rows="5" name="row[log_situation]" cols="50">{$row.log_situation}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-log_plan" class="control-label col-xs-12 col-sm-2">{:__('Log_plan')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-log_plan" data-rule="required" class="form-control " rows="5" name="row[log_plan]" cols="50">{$row.log_plan}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-log_expect" class="control-label col-xs-12 col-sm-2">{:__('Log_expect')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-log_expect" data-rule="required" class="form-control " rows="5" name="row[log_expect]" cols="50">{$row.log_expect}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-log_img" class="control-label col-xs-12 col-sm-2">{:__('Log_img')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-log_img" data-rule="" class="form-control" size="50" name="row[log_img]" type="text" value="{$row.log_img}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-log_img" class="btn btn-danger plupload" data-input-id="c-log_img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-log_img"><i class="fa fa-upload"></i> 上传</button></span>
                    <!--<span><button type="button" id="fachoose-log_img" class="btn btn-primary fachoose" data-input-id="c-log_img" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>-->
                </div>
                <span class="msg-box n-right" for="c-log_img"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-log_img"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
